from CellTasker.cell import task
from time import sleep


@task('work1', '8:00:00 - 23:59:59', 3, r'./register', r'./update', 'echo work1')
def work(change_status: callable):
    print('start')
    change_status('running')
    raise Exception('error')
    sleep(30)
    print('end')
    change_status('done')


work()
